package com.hope.hotel.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

// 酒店信息管理模块
@Data
@TableName("hotels")
public class Hotel {

    @TableId(type = IdType.ASSIGN_ID)
    private Long hotelId;
    private String name;
    private String address;
    private String city;
    private String description;
    private Double rating;    // 如 4.5
    private String phone;
    private String photos;
    private String avatar;        // 主页照片
    private LocalDateTime createdAt;
    private Long adminId;
}